<form class="layui-form layui-box" style='padding:25px 30px 20px 0' action="__SELF__" data-auto="true" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">商户名称</label>
        <div class="layui-input-block">
            {if $vo and isset($vo.username)}
            <input readonly="readonly" disabled="disabled" name="sname" value='{$vo.sname|default=""}'
                   required="required" title="请输入商户名称" placeholder="请输入商户名称" class="layui-input layui-disabled">
            {else}
            <input name="sname" value='{$vo.sname|default=""}' required="required" title="请输入商户名称"  placeholder="请输入商户名称" class="layui-input">
            {/if}
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">手机号码</label>
        <div class="layui-input-block">
            <input type="text" autofocus name="phone" value='{$vo.phone|default=""}' pattern="^1[3-9][0-9]{9}$"
                   title="请输入手机号码" placeholder="请输入手机号码" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">固定电话</label>
        <div class="layui-input-block">
            <input type="text" autofocus name="tel" value='{$vo.tel|default=""}' placeholder="请输入固定电话" class="layui-input">
        </div>
    </div>

   

   <div class="layui-form-item">
        <label class="layui-form-label">访问授权</label>
        <div class="layui-input-block">
            <select name='is_open' class='layui-select full-width' style='display:block'>
                <option {eq name="$vo.is_open|default=''" value="1" } selected {/eq} value='1'>开启</option>
                <option {eq name="$vo.is_open|default=''" value="0" } selected {/eq} value='0'>禁止</option>
            </select>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">商户描述</label>
        <div class="layui-input-block">
            <textarea placeholder="请输入商户描述" title="请输入商户描述" class="layui-textarea" name="content">{$vo.content|default=""}</textarea>
        </div>
    </div>

    <div class="hr-line-dashed"></div>

    <div class="layui-form-item text-center">
        {if isset($vo['id'])}<input type='hidden' value='{$vo.id}' name='id'/>{/if}
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</form>
